package main

import "fmt"

func main() {
	setData(20)
	fmt.Println("everything is ok")
}

func setData(x int) {
	defer func() {
		if err := recover(); err != nil {
			fmt.Println(err)
		}
	}()

	var arr [10]int
	arr[x] = 88
}
